package com.share.configuration;

import com.share.template.EmailTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSender;

@Configuration
public class EmailAutoConfiguration {
    @Bean
    public EmailTemplate wechatLoginTemplate(JavaMailSender mailSender){
        return new EmailTemplate(mailSender);
    }
}
